package com.zdgcc.site.servlet;

import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.zdgcc.site.util.Forward;

public class LogoutServlet extends HttpServlet {

	private static final long serialVersionUID = 9187628929048626947L;

	protected void doGet(HttpServletRequest request, HttpServletResponse response) {
		this.doPost(request, response);
	}

	protected void doPost(HttpServletRequest request, HttpServletResponse response) {
		request.getSession().removeAttribute("name");
		Forward.doForward(request, response, path);
	}

	private final String path = "index.jsp";
}
